<?php
return [
    'components' => [
        'user'=>[
            'class' => 'yii\web\User',
            'enableAutoLogin' => true,
            'identityClass' => 'app\modules\admin\models\Admin',
            'loginUrl'=>Yii::$app->urlManager->createUrl(['admin/default/login']),
            'returnUrl'=>Yii::$app->urlManager->createUrl(['admin/default/index']),
        ],
    ],
];